/*
 * Created by SharpDevelop.
 * User: rseward
 * Date: 1/14/2009
 * Time: 11:54 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using System.IO;

namespace TestNHibernateHelperKit
{
	[TestFixture]
	public class TestIcon
	{
		[Test]
		public void TestMethod()
		{
			// Attempt to convert Base64 encoded ICON into file.
			String icoBase64 = 
				"AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAA"+
        		"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+
        		"AAAAAAAAAAAAAAAAAAsAAAARAAAAEQAAABEAAAARAAAAEQAAABEAAAARAAAAEQAAABEAAAARAAAAEQAA"+
        		"ABEAAAAMAAAAAQAAAAomEgZaj186r6ByUb2gd1m+oHtfvqB+ZL6hgGe+oYBnvqF/Zb6gfGC+oHhavqBz"+
        		"Ur2SYj2yLxkJZAAAAA8JAwAR4ZFX7e6zifzwv5z888uw/PXXwfz33s38+OLT/Pji1Pz338789tjD/PPN"+
        		"s/zxwaD87rWM/OqcYvUXCQAfNxcANPGcX/3qoW377Kp7+/TOtPv56+H78siq+/TNsvv0zbL788ir+/jn"+
        		"2/v11b777ax+++uib/vvnWT8TCUJUDwZADLuklH86ZRY+uylcvr67OH6++3k+vTNsPrvs4n677SK+vPF"+
        		"pPr77uT6++3j+u6ugfrplFj67JNU/E0lB01BGwAy64pE/OeMSvrzxKP6+ufZ+vrn2vr66Nr665tj+uqX"+
        		"XPr55NP6+uja+vrn2fr1zrP654pI+umKRvxNIwRNSh4AM+iBOPzlgzz69dK5+vrp3Pr66dz688Wl+uuf"+
        		"afrtpnT68LmR+vrp3fr66dz699rG+uWBOfrogzr7TSICT0oeADPogzr85X40+uaIRPrnikj654pI+uaD"+
        		"PPrxwqD69NC0+uWAN/rniUb654lG+uaIQ/rkfjX65nww+00gAFJKHgAz7qVx/OufaProj0/65ohF+uWD"+
        		"PPrnikf66ppi+u2qefrspnT67ad2+u2od/rroGv6545O+uV3KftNIABSSh4AM/K3jfzxvJf68b2X+vG9"+
        		"mPrxvpn688Si+vzz7Pr89O3688am+vG8l/rxvJf68byX+vG9mPrwr4H7TR8AUkodADP2y6389dG2+vXR"+
        		"tvr10bb69dC1+vrq3/r99e/6/fXv+vrs4Pr10LX69dG2+vXRtvr10bb69tG2+00gAFJKHQA0+d3J/Pni"+
        		"0vr54tL6+eLS+vnl1vr++vf6/vn1+v759fr++vf6+eXW+vni0vr54tL6+eLS+vrj0/tMIABTMBIAF/jY"+
        		"wPj88Oj6/PDn+vzw5/r88Of6/PHp+vz28fr89vH6/PHp+vzw5/r88Of6/PDn+vzw5/r649L8Sh0ALAAA"+
        		"AACARR5e8ruW4/bGo/v2xqP79saj+/bGo/v2xqP79saj+/bGo/v2xqP79saj+/bGo/vzvZnogUwqawAA"+
        		"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+
        		"AAAAAAAA//8AAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"+
        		"AACAAQAA//8AAA==";
			
			byte[] icoBin = System.Convert.FromBase64String(icoBase64);
			
			FileStream fs = new FileStream("cool.ico",System.IO.FileMode.Create);
			
			fs.Write( icoBin, 0, icoBin.Length  );
			fs.Close();
			
			
			
			
			
			
		}
	}
}
